#include <iostream>	// basic io standart
#include <math.h>		// for sqrt()

using namespace std;

class point
{
	int x, y, z;
public:
	point()
	{
		x = y = z = 0;
	}	
	
	point(int a, int b, int c)
	{
		x = a;
		y = b;
		z = c;
	}
	
	point(point &p)
	{
		x = p.x;
		y = p.y;
		z = p.z;
	}
	
	int negate()
	{
		x = -x;
		y = -y;
		z = -z;
	}
	
	void pointTo(point &p)
	{
		p.x = x;
		p.y = y;
		p.z = z;
	}

	void print()
	{
		cout << "(" << x << "," << y << "," << z << ")" << endl;
	}

	int norm(point *p)
	{
		return sqrt(x*x + y*y + z*z);
	}
};

int main(int argc, char** argv)
{
	point A, B, C;	
	A = point(10, 11, 12);
	A.pointTo(B);
	A.print();
	B.print();
	C = point(A);
	C.print();
	point* D = new point(1, 2, 3);
	C = point(*D);
	C.print();
	return 0;
}

